package com.jiamao.goplay.immsg;


import com.alibaba.fastjson.JSONObject;
import com.jiamao.goplay.bean.ImMatchMsg;
import com.netease.nim.uikit.common.util.C;

import me.goldze.mvvmhabit.utils.KLog;

public class MatchAttachment extends CustomAttachment{

    public int Type,InterestUserNum;
    public String PlaceId,
            PlaceCover,
            PlaceName,
            Province,
            City,
            Area,

            InviteUid,
            InviteesUid,
            InviteDesc,
            InviteesDesc,PairDesc;
    public long PairTime;



    public MatchAttachment() {
        super(CustomAttachmentType.MATCH);
    }
    @Override
    protected void parseData(JSONObject data) {

       KLog.d("parseData   "+data.toJSONString());
       try {
          // Type = data.getInteger("Type");
           PlaceId = data.getString("PlaceId");
           PlaceCover = data.getString("PlaceCover");
           PlaceName = data.getString("PlaceName");
           Province = data.getString("Province");
           City = data.getString("City");
           Area = data.getString("Area");
           InterestUserNum = data.getInteger("InterestUserNum");
           InviteUid = data.getString("InviteUid");
           InviteesUid = data.getString("InviteesUid");
           InviteDesc = data.getString("InviteDesc");
           InviteesDesc = data.getString("InviteesDesc");
           PairDesc = data.getString("PairDesc");
           PairTime = data.getLong("PairTime");
       }catch (Exception e){
           e.printStackTrace();
       }


        KLog.d("City:"+ City+"   name:"+PlaceName+" PlactId:"+PlaceId);
    }
    @Override
    protected JSONObject packData() {
        JSONObject data = new JSONObject();
//        data.put("value", value.getValue());
        return data;
    }

    @Override
    public int getType() {
        return Type;
    }

    public void setType(int type) {
        Type = type;
    }

    public int getInterestUserNum() {
        return InterestUserNum;
    }

    public void setInterestUserNum(int interestUserNum) {
        InterestUserNum = interestUserNum;
    }

    public String getPlaceId() {
        return PlaceId;
    }

    public void setPlaceId(String placeId) {
        PlaceId = placeId;
    }

    public String getPlaceCover() {
        return PlaceCover;
    }

    public void setPlaceCover(String placeCover) {
        PlaceCover = placeCover;
    }

    public String getPlaceName() {
        return PlaceName;
    }

    public void setPlaceName(String placeName) {
        PlaceName = placeName;
    }

    public String getProvince() {
        return Province;
    }

    public void setProvince(String province) {
        Province = province;
    }

    public String getCity() {
        return City;
    }

    public void setCity(String city) {
        City = city;
    }

    public String getArea() {
        return Area;
    }

    public void setArea(String area) {
        Area = area;
    }

    public String getInviteUid() {
        return InviteUid;
    }

    public void setInviteUid(String inviteUid) {
        InviteUid = inviteUid;
    }

    public String getInviteesUid() {
        return InviteesUid;
    }

    public void setInviteesUid(String inviteesUid) {
        InviteesUid = inviteesUid;
    }

    public String getInviteDesc() {
        return InviteDesc;
    }

    public void setInviteDesc(String inviteDesc) {
        InviteDesc = inviteDesc;
    }

    public String getInviteesDesc() {
        return InviteesDesc;
    }

    public void setInviteesDesc(String inviteesDesc) {
        InviteesDesc = inviteesDesc;
    }

    public String getPairDesc() {
        return PairDesc;
    }

    public void setPairDesc(String pairDesc) {
        PairDesc = pairDesc;
    }

    public long getPairTime() {
        return PairTime;
    }

    public void setPairTime(long pairTime) {
        PairTime = pairTime;
    }
}
